#include "LeCompteEstBon.h"

#include <QtGui>
#include <QApplication>

#include <iostream>

int main(int argc, char* argv[])
{
    for(int i = 1; i < argc; i++)
    {
        //traitement des options
        if(!strcmp(argv[i], "--help") || !strcmp(argv[i], "-h") || !strcmp(argv[i], "-?"))
        {
            std::cout << "Usage: " << argv[0] << " [OPTION]" << std::endl;
            std::cout << std::endl;
            std::cout << "\t--nogui\t\tlaunch the game in console mode" << std::endl;
            std::cout << "\t-?, --help\tgive this help list" << std::endl;
            std::cout << "\t--usage\t\tgive a short usage message" << std::endl;

            return 0;
        }
        else if(!strcmp(argv[i], "--usage"))
        {
            std::cout << "Usage: " << argv[0] << " [-?] [--nogui] [--help] [--usage]" << std::endl;

            return 0;
        }
        else if(!strcmp(argv[i], "--nogui"))
        {
            std::cout << "WHAT ? Did you think there was even a slice of GUI ? You fool !" << std::endl;
        }
    }

    QApplication a(argc, argv);
    LeCompteEstBon w;
    w.show();
    return a.exec();
}
